package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 新增员工
     * @param dto
     */
    void addEmployee(EmployeeDTO dto);

    /**
     * @description:
     * @author: wzw
     * @date: 2025/9/28 0028 1:05
     * @param: [employeePageQueryDTO]
     * @return: com.sky.result.PageResult
     **/
    PageResult page(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * @description:
     * @author: wzw
     * @date: 2025/9/28 0028 1:05
     * @param: [status, id]
     * @return: void
     **/
    void startOrStopEmployee(Integer status, Long id);

    /**
     * @description:
     * @author: wzw
     * @date: 2025/9/28 0028 1:05
     * @param: [id]
     * @return: com.sky.entity.Employee
     **/
    Employee getEmployeeById(Long id);

    /**
     * @description:
     * @author: wzw
     * @date: 2025/9/28 0028 1:05
     * @param: [employeeDTO]
     * @return: void
     **/
    void update(EmployeeDTO employeeDTO);
}
